package com.lzy.mall.common.enume;

/**
 * @author lzy
 * @date 2021/10/6 13:59
 */
public enum  OrderStatusEnum {
    CREATE_NEW(0,"待付款"),
    PAYED(1,"已付款"),
    SENDED(2,"已发货"),
    RECIEVED(3,"已完成"),
    CANCLED(4,"已取消"),
    SERVICING(5,"售后中"),
    SERVICED(6,"售后完成"),

    /**
     * 锁库存相关
     */
    LOCK_STATUS_LOCK(1,"已锁定"),
    LOCK_STATUS_UNLOCK(2,"已解锁"),
    LOCK_STATUS_RE(3,"扣减")
    ;
    private Integer code;
    private String msg;

    OrderStatusEnum(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public Integer getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }
}
